/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package arg_program;

import arg.program.gui.MainJFrame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

/**
 *
 * @author Jasmin
 */
public class BrowsTitles extends MainJFrame {
    
    
    
    /**
     * Constructor
     */
    public BrowsTitles()
    {
        String usrInput = searchTB.getText();
        
        jList1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        
        jList1.addListSelectionListener(new ListListener());
             
    }
    
    
    
    public class ListListener implements ListSelectionListener
    {
        public void valueChanged(ListSelectionEvent e)
        {
            String selection = (String) jList1.getSelectedValue();
            
            
            jLabel2.setText(selection);
            
            
        }
    }     
}
